Time-scale calculus